package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.CoolAppCardDataEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CoolAppCardDataDao {
    Integer insert(CoolAppCardDataEntity entity);

    void insertBatch(List<CoolAppCardDataEntity> list);

    CoolAppCardDataEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(CoolAppCardDataEntity entity);

    List<CoolAppCardDataEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    Integer updateBatch(@Param("list") List<CoolAppCardDataEntity> list, @Param("corpid") String corpid);

    CoolAppCardDataEntity getByCardBizId(@Param("corpid") String corpid ,@Param("cardBizId") String cardBizId);

}